var a = {
    name: '123',
    age: 18,
}
a.sex = '男'
a['phone'] = '1233123'
// console.log(a)
// console.log(a.toString())
var b = new Object()
b.name = "123"
b.age = 19
b.sex = 'man'
// console.log(b)

var c = function () {
    var obj = {}
    obj.name = "123"
    obj.age = 19
    obj.sex = 'man'
    obj.learn = function () {
        console.log("123")
    }
    return obj;
}

function F() {
    this.name = "123"
    this.age = 19
    this.sex = 'man'
    this.learn = function () {
        console.log("123")
    }
}
var d = new F()
// console.log(d)
function Person(name, age, job) {
    this.name = name;
    this.age = age;
    this.job = job;
    this.sayHi = function () {
        console.log('Hello,everyBody');
    }
}
var p1 = new Person('张三', 22, 'actor');
console.log(p1)